package com.oop.demo03;

public class Personn {
    int age;
    String name;
    //无参构造
    public Personn() {
    }
    //有参构造
    public Personn(int age, String name) {
        this.age = age;
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public String getName() {
        return name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;
    }
}
